package testcases;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.Before;

import code.Bank;
public class BankTest {
	
	Bank bank1 = new Bank("bank1");
	
	public void runTest(){
		testConstructor();
		testMethods();
	}
	
	public void testConstructor() {
		assertEquals("bank1", bank1.fName);
		assertEquals(0, bank1.fCheckingAccounts.size());
		assertEquals(0, bank1.fSavingAccounts.size());
	}
	
	public void testMethods(){
		assertEquals(2, bank1.openSimpleCheckingAccount());
		assertEquals(3, bank1.openFullPackage());
		assertFalse(bank1.withdrawMoney(2, 10));
		assertFalse(bank1.withdrawMoney(3, 10));
	}

}
